﻿


@model DealKhuyenMaiV2.com.Models.Comment
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Admin/Shared/_AdminLayout.cshtml";
}
<div class="breadcrumb">
        @Html.ActionLink("Trang Chủ", "Index", "Admin")::@Html.ActionLink("Quản lý Nhận Xét", "Index", "CommentManager")
    </div>
<div class="box">
    <div class="left">
    </div>
    <div class="right">
    </div>
    <div class="heading">
        <h1 style="background-image: url(../../ContentAdmin/DefaultThemes/image/home.png);">
            Quản lý Nhận Xét</h1>
         <div class="buttons">
           <a onclick="$('form').submit();" class="button"><span>Cập Nhật</span></a>
             <a  href="@Url.Action("Index")" class="button"><span>Hủy</span></a>
         </div>
    </div>
    <div class="content">
        <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
        <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary(true)
            <div id="tabs" class="htabs">
                <a tab="#tab_general" class="selected">Tổng quan</a></div>
            <div id="tab_general" style="display: block;">
                <table class="form">
                    @Html.HiddenFor(model => model.IDComment)
                    
                    <tr>
                        <td>
                            <span class="required">*</span>  @Html.LabelFor(model => model.IDAccount) :
                        </td>
                        <td>
                            @Html.TextBox("Mail",Model.Account.Email, new { @readonly = "readonly", @style = "width: 300px;" })
                            
                        </td>
                    </tr>
                    

                    <tr>
                        <td>
                            <span class="required">*</span>  @Html.LabelFor(model => model.IDProduct) :
                        </td>
                        <td>
                            @Html.DropDownList("IDProduct")
                            @Html.ValidationMessageFor(model => model.IDProduct)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="required">*</span> @Html.LabelFor(model => model.Description) :
                        </td>
                        <td>
                            @Html.TextAreaFor(model => model.Description, new { @Cols = "77", @Rows ="6" })
                            @Html.ValidationMessageFor(model => model.Description)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="required">*</span> @Html.LabelFor(model => model.DateAdder) :
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.DateAdder, new {  @readonly = "readonly" })
                            @Html.ValidationMessageFor(model => model.DateAdder)
                        </td>
                    </tr>
                </table>
               
            </div>
   
        }
      
    </div>
</div>
